﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Web.UI;
using Antu.WebControls;
using Antu.Core.Components;
using Antu.Core.Services;
using System.Web.UI.WebControls;

namespace WebSys.UI.SysManage
{
    public class Error : Page
    {
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            Image errorimg = (Image)this.FindControl("errorimg");
            errorimg.ImageUrl = SiteSettings.DefaultSiteSettings.SiteErrorUrl;

            if (Application["appError"] != null)
            {
                Label showmsg = (Label)this.FindControl("showmsg");
                showmsg.Text = Application["appError"].ToString();

                Image errleftimg = (Image)this.FindControl("errleftimg");
                errleftimg.ImageUrl = "~/images/robot.png";
            }


        }

    }
}


